.chat_history {
  display: flex;
  padding: 16px;
  width: 100%;

  &.me {
    text-align: right;

    .chat_message {
      margin-left: 48px;
    }

    .message {
      width: auto;
      background: #1677ff;

      :global {
        .markdown-body {
          color: #fff;
        }
      }
    }
  }

  .chat_message {
    flex: 1;
    margin-left: 12px;
    overflow: hidden;
  }

  .message {
    padding: 12px;
    display: inline-block;
    max-width: 100%;
    background: #ececec;
    border-radius: 8px;
    text-align: left;
    line-height: 24px;

    .text {
      color: #333;
    }

    .loading {
      margin-left: 6px;
      font-size: 14px;
    }

    :global {
      .markdown-body {
        max-width: 100%;
        display: inline-block;
        font-size: 15px;
        background-color: transparent;
      }
    }
  }
}